<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>CATIA CAA开发教程文档(1) | 镜中的幽灵小站</title><meta name="author" content="镜中的幽灵"><meta name="copyright" content="镜中的幽灵"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="1. 新建项目1.1 创建工作空间（Workspace） 点击 File-&gt;New CAA V5 Workspace     输入工作空间名称（最好以Wsp结尾）  选择Catia版本（V5R18_B18)  点击Next    1.2 创建框架（Framework） 选择Create new generic framework  点击Finish      输入框架名称（以Frm结尾）">
<meta property="og:type" content="article">
<meta property="og:title" content="CATIA CAA开发教程文档(1)">
<meta property="og:url" content="https://mirror-ghost.netlify.app/2025/11/05/CATIA%20CAA%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E6%96%87%E6%A1%A31/index.html">
<meta property="og:site_name" content="镜中的幽灵小站">
<meta property="og:description" content="1. 新建项目1.1 创建工作空间（Workspace） 点击 File-&gt;New CAA V5 Workspace     输入工作空间名称（最好以Wsp结尾）  选择Catia版本（V5R18_B18)  点击Next    1.2 创建框架（Framework） 选择Create new generic framework  点击Finish      输入框架名称（以Frm结尾）">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://mirror-ghost.netlify.app/images/header.jpg">
<meta property="article:published_time" content="2025-11-05T01:26:10.000Z">
<meta property="article:modified_time" content="2025-11-05T05:35:24.966Z">
<meta property="article:author" content="镜中的幽灵">
<meta property="article:tag" content="CATIA CAA">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://mirror-ghost.netlify.app/images/header.jpg"><script type="application/ld+json">{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "CATIA CAA开发教程文档(1)",
  "url": "https://mirror-ghost.netlify.app/2025/11/05/CATIA%20CAA%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E6%96%87%E6%A1%A31/",
  "image": "https://mirror-ghost.netlify.app/images/header.jpg",
  "datePublished": "2025-11-05T01:26:10.000Z",
  "dateModified": "2025-11-05T05:35:24.966Z",
  "author": [
    {
      "@type": "Person",
      "name": "镜中的幽灵",
      "url": "https://mirror-ghost.netlify.app/"
    }
  ]
}</script><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://mirror-ghost.netlify.app/2025/11/05/CATIA%20CAA%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E6%96%87%E6%A1%A31/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css?v=5.5.1"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.1.0/css/all.min.css"><script>
    (() => {
      
    const saveToLocal = {
      set: (key, value, ttl) => {
        if (!ttl) return
        const expiry = Date.now() + ttl * 86400000
        localStorage.setItem(key, JSON.stringify({ value, expiry }))
      },
      get: key => {
        const itemStr = localStorage.getItem(key)
        if (!itemStr) return undefined
        const { value, expiry } = JSON.parse(itemStr)
        if (Date.now() > expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return value
      }
    }

    window.btf = {
      saveToLocal,
      getScript: (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        Object.entries(attr).forEach(([key, val]) => script.setAttribute(key, val))
        script.onload = script.onreadystatechange = () => {
          if (!script.readyState || /loaded|complete/.test(script.readyState)) resolve()
        }
        script.onerror = reject
        document.head.appendChild(script)
      }),
      getCSS: (url, id) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onload = link.onreadystatechange = () => {
          if (!link.readyState || /loaded|complete/.test(link.readyState)) resolve()
        }
        link.onerror = reject
        document.head.appendChild(link)
      }),
      addGlobalFn: (key, fn, name = false, parent = window) => {
        if (!false && key.startsWith('pjax')) return
        const globalFn = parent.globalFn || {}
        globalFn[key] = globalFn[key] || {}
        globalFn[key][name || Object.keys(globalFn[key]).length] = fn
        parent.globalFn = globalFn
      }
    }
  
      
      const activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      const activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }

      btf.activateDarkMode = activateDarkMode
      btf.activateLightMode = activateLightMode

      const theme = saveToLocal.get('theme')
    
          theme === 'dark' ? activateDarkMode() : theme === 'light' ? activateLightMode() : null
        
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        document.documentElement.classList.toggle('hide-aside', asideStatus === 'hide')
      }
    
      
    const detectApple = () => {
      if (/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)) {
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
  
    })()
  </script><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false,"highlightFullpage":false,"highlightMacStyle":false},
  copy: {
    success: '复制成功',
    error: '复制失败',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'null',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid@4.12.0/dist/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyloadPlugin: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'CATIA CAA开发教程文档(1)',
  isHighlightShrink: false,
  isToc: true,
  pageType: 'post'
}</script><meta name="generator" content="Hexo 8.1.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img text-center"><img src="/images/header.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data text-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">1</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header"><nav id="nav"><span id="blog-info"><a class="nav-site-title" href="/"><span class="site-name">镜中的幽灵小站</span></a><a class="nav-page-title" href="/"><span class="site-name">CATIA CAA开发教程文档(1)</span><span class="site-name"><i class="fa-solid fa-circle-arrow-left"></i><span>  返回首页</span></span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div></div><div id="toggle-menu"><span class="site-page"><i class="fas fa-bars fa-fw"></i></span></div></div></nav><div id="post-info"><h1 class="post-title">CATIA CAA开发教程文档(1)</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2025-11-05T01:26:10.000Z" title="发表于 2025-11-05 09:26:10">2025-11-05</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2025-11-05T05:35:24.966Z" title="更新于 2025-11-05 13:35:24">2025-11-05</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title=""><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">浏览量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="container post-content" id="article-container"><h3 id="1-新建项目"><a href="#1-新建项目" class="headerlink" title="1. 新建项目"></a>1. 新建项目</h3><h4 id="1-1-创建工作空间（Workspace）"><a href="#1-1-创建工作空间（Workspace）" class="headerlink" title="1.1 创建工作空间（Workspace）"></a>1.1 创建工作空间（Workspace）</h4><ul>
<li>点击 File-&gt;New CAA V5 Workspace</li>
</ul>
<img src="/images/2025-05-12-09-38-59-image.png" title="" alt="" width="481">

<ul>
<li><p>输入工作空间名称（最好以Wsp结尾）</p>
</li>
<li><p>选择Catia版本（V5R18_B18)</p>
</li>
<li><p>点击Next</p>
</li>
</ul>
<p><img src="/images/2025-05-12-09-41-27-image.png"></p>
<h4 id="1-2-创建框架（Framework）"><a href="#1-2-创建框架（Framework）" class="headerlink" title="1.2 创建框架（Framework）"></a>1.2 创建框架（Framework）</h4><ul>
<li><p>选择Create new generic framework</p>
</li>
<li><p>点击Finish</p>
</li>
</ul>
<img src="/images/2025-05-12-09-44-17-image.png" title="" alt="" width="618">

<ul>
<li><p>输入框架名称（以Frm结尾）</p>
</li>
<li><p>选择Implementation</p>
</li>
<li><p>选择Development</p>
</li>
<li><p>点击OK</p>
</li>
</ul>
<img title="" src="/images/2025-05-12-09-46-13-image.png" alt="" width="605">

<ul>
<li>点击OK</li>
</ul>
<img src="/images/2025-05-12-09-46-26-image.png" title="" alt="" width="289">

<div STYLE="page-break-after: always;"></div>

<h4 id="1-3-加载编译环境"><a href="#1-3-加载编译环境" class="headerlink" title="1.3 加载编译环境"></a>1.3 加载编译环境</h4><ul>
<li><p>点击CAA V5 Workspace</p>
</li>
<li><p>选择Locate Prerequisite Workspace</p>
</li>
</ul>
<img src="/images/2025-05-12-09-52-57-image.png" title="" alt="" width="381">

<ul>
<li><p>点击Add</p>
</li>
<li><p>选择CATIA V5R18安装路径</p>
</li>
<li><p>点击OK</p>
</li>
<li><p>点击OK</p>
</li>
</ul>
<img src="/images/2025-05-12-09-52-40-image.png" title="" alt="" width="522">

<ul>
<li><p>点击Close</p>
<img src="/images/2025-05-12-10-28-14-image.png" title="" alt="" width="494">

<div STYLE="page-break-after: always;"></div></li>
</ul>
<h4 id="1-4-添加模块（Module）"><a href="#1-4-添加模块（Module）" class="headerlink" title="1.4 添加模块（Module）"></a>1.4 添加模块（Module）</h4><ul>
<li><p>输入模块名称（M结尾）</p>
</li>
<li><p>选择Shared object</p>
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-10-52-52-image.png" title="" alt="" width="464">
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-10-53-04-image.png" title="" alt="" width="300">

<p><em>注：模块文件夹会自动添加.m后缀</em></p>
<div STYLE="page-break-after: always;"></div></li>
</ul>
<h4 id="1-5-添加命令（Command）"><a href="#1-5-添加命令（Command）" class="headerlink" title="1.5 添加命令（Command）"></a>1.5 添加命令（Command）</h4><ul>
<li>点击File-&gt;Add CAAV5 Item-&gt;CATIResource-&gt;Command</li>
</ul>
<img src="/images/2025-05-12-10-57-46-image.png" title="" alt="" width="480">

<ul>
<li><p>输入Cmd名称（Cmd结尾）</p>
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-10-59-31-image.png" title="" alt="" width="304">
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-10-59-43-image.png" title="" alt="" width="310">

<div STYLE="page-break-after: always;"></div></li>
</ul>
<h4 id="1-6-添加对话框（Dialog）"><a href="#1-6-添加对话框（Dialog）" class="headerlink" title="1.6 添加对话框（Dialog）"></a>1.6 添加对话框（Dialog）</h4><ul>
<li><p>点击File-&gt;Add CAAV5 Item-&gt;CATIResource-&gt;Dialog</p>
<img src="/images/2025-05-12-11-06-26-image.png" title="" alt="" width="453">
</li>
<li><p>输入Dialog名称（Dlg结尾）</p>
<img src="/images/2025-05-12-11-08-08-image.png" title="" alt="" width="338">
</li>
<li><p>点击OK</p>
<img title="" src="/images/2025-05-12-11-08-28-image.png" alt="" width="317">
</li>
<li><p>点击OK</p>
</li>
</ul>
<h4 id="1-7-创建外接程序（Addin）"><a href="#1-7-创建外接程序（Addin）" class="headerlink" title="1.7 创建外接程序（Addin）"></a>1.7 创建外接程序（Addin）</h4><ul>
<li><p>创建Addin模块（****AddinM）</p>
</li>
<li><p>选择Addin模块为当前启动项</p>
</li>
<li><p>点击File-&gt;Add CAAV5 Item-&gt;Component</p>
<img src="/images/2025-05-12-14-07-39-image.png" title="" alt="" width="400">
</li>
<li><p>输入Component name（Addin结尾）</p>
</li>
<li><p>点击Add</p>
</li>
<li><p>点击…按钮</p>
<img src="/images/2025-05-12-14-09-34-image.png" title="" alt="" width="266">
</li>
<li><p>选择CATIA安装路径（B18）</p>
</li>
<li><p>移除Search…勾选</p>
</li>
<li><p>选择实现接口模块，例如CATIPrtWksAddin（零件设计模块&#x2F;曲面设计模块）</p>
</li>
<li><p>其他常用模块</p>
<ul>
<li><p>CATIDRWFRAMEAddin（工程制图设计模块）</p>
</li>
<li><p>CATIPRDWorkshopAddin（装配设计模块）</p>
</li>
<li><p>CATIAfrGeneralWksAddin（全局模块）</p>
</li>
</ul>
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-14-15-38-image.png" title="" alt="" width="407">
</li>
<li><p>点击OK</p>
</li>
<li><p>点击OK</p>
<img src="/images/2025-05-12-14-19-52-image.png" title="" alt="" width="442">

<p><em>注：如果需要修改或添加程序模块，可以通过修改addin对应的多个文件实现</em></p>
<ul>
<li>xxxAddin.cpp    扩展组件对应的cpp文件</li>
</ul>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//TIE or TIEchain definitions</span></span><br><span class="line"><span class="meta">#<span class="keyword">include</span> <span class="string">&quot;TIE_CATIPrtWksAddin.h&quot;</span></span></span><br><span class="line"><span class="built_in">TIE_CATIPrtWksAddin</span>(PluginUdfAddin);</span><br><span class="line">  </span><br><span class="line"><span class="comment">// 这里添加到装配模块</span></span><br><span class="line"><span class="comment">//TIE or TIEchain definitions</span></span><br><span class="line"><span class="meta">#<span class="keyword">include</span> <span class="string">&quot;TIE_CATIPRDWorkshopAddin.h&quot;</span></span></span><br><span class="line"><span class="built_in">TIE_CATIPRDWorkshopAddin</span>(PluginUdfAddin);</span><br></pre></td></tr></table></figure>

<ul>
<li>xxxFrm&#x2F;CNext&#x2F;code&#x2F;dictionary&#x2F;xxxFrm.dico    框架对应的dico文件</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"># COPYRIGHT Dassault Systemes 2025</span><br><span class="line">#======================================================================</span><br><span class="line"># Dictionary OfflineProgramFrm.dico</span><br><span class="line">#  associated with framework OfflineProgramFrm</span><br><span class="line">#======================================================================</span><br><span class="line">#</span><br><span class="line">#  May 2025  Creation: Code generated by the CAA wizard  Admin</span><br><span class="line">#======================================================================</span><br><span class="line"># DO NOT EDIT :: THE CAA2 WIZARDS WILL ADD CODE HERE</span><br><span class="line">  </span><br><span class="line">    xxxAddin    CATIPrtWksAddin    libxxxAddinM</span><br><span class="line">    # 这里添加新的模块</span><br><span class="line">    xxxAddin    CATIPRDWorkshopAddin    libxxxAddinM</span><br><span class="line">  </span><br><span class="line"># END WIZARD EDITION ZONE</span><br></pre></td></tr></table></figure>
</li>
<li><p>添加Addin的.cpp中的Header声明宏</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//括号内的字符可以自定义，一般命名为：Addin名称+Header</span></span><br><span class="line"><span class="comment">//声明的宏用于后面创建命令时关联对应组件和命令</span></span><br><span class="line"><span class="built_in">MacDeclareHeader</span>(PluginxxxAddinHeader); </span><br></pre></td></tr></table></figure>

<img src="/images/2025-05-12-14-50-34-image.png" title="" alt="" width="474">
</li>
<li><p>在Addin的.h文件中public下添加函数声明</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// 注意添加头文件</span></span><br><span class="line"><span class="meta">#<span class="keyword">include</span> <span class="string">&quot;CATCmdContainer.h&quot;</span></span></span><br><span class="line"><span class="meta">#<span class="keyword">include</span> <span class="string">&quot;CATCommandHeader.h&quot;</span></span></span><br><span class="line"><span class="meta">#<span class="keyword">include</span> <span class="string">&quot;CATCreateWorkshop.h&quot;</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">//...其他代码...//</span></span><br><span class="line"> <span class="keyword">public</span>:</span><br><span class="line"><span class="comment">//...其他代码...//</span></span><br><span class="line">   <span class="function"><span class="type">void</span> <span class="title">CreateCommands</span><span class="params">()</span></span>;</span><br><span class="line">   <span class="function">CATCmdContainer* <span class="title">CreateToolbars</span><span class="params">()</span></span>;</span><br></pre></td></tr></table></figure>
</li>
<li><p>添加对应的Addin模块引用到当前模块的Imakefile.mk，<strong>如果已经存在则不需要重复添加</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line"># COPYRIGHT Dassault Systemes 2025</span><br><span class="line">#======================================================================</span><br><span class="line"># Imakefile for module PluginUdfAddinM.m</span><br><span class="line">#======================================================================</span><br><span class="line">#</span><br><span class="line">#  May 2025  Creation: Code generated by the CAA wizard  Admin</span><br><span class="line">#======================================================================</span><br><span class="line">#</span><br><span class="line"># SHARED LIBRARY </span><br><span class="line">#</span><br><span class="line">BUILT_OBJECT_TYPE=SHARED LIBRARY </span><br><span class="line"></span><br><span class="line"># DO NOT EDIT :: THE CAA2 WIZARDS WILL ADD CODE HERE</span><br><span class="line">WIZARD_LINK_MODULES = JS0GROUP \</span><br><span class="line">JS0FM JS0GROUP CATMechanicalModelerUI MechanicalModelerUIUUID </span><br><span class="line"># END WIZARD EDITION ZONE</span><br><span class="line"></span><br><span class="line">LINK_WITH = $(WIZARD_LINK_MODULES) \</span><br><span class="line"># 这里添加额外的模块</span><br><span class="line">CATApplicationFrame </span><br><span class="line"></span><br><span class="line"># System dependant variables</span><br><span class="line">#</span><br><span class="line">OS = AIX</span><br><span class="line">#</span><br><span class="line">OS = HP-UX</span><br><span class="line">#</span><br><span class="line">OS = IRIX</span><br><span class="line">#</span><br><span class="line">OS = SunOS</span><br><span class="line">#</span><br><span class="line">OS = Windows_NT</span><br></pre></td></tr></table></figure>
</li>
<li><p>添加对应的模块组件到当前框架的IdentityCard.h，路径位于xxxWsp\xxxFrm\IdentityCard\IdentityCard.h，<strong>如果已经存在就不需要重复添加</strong></p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">  <span class="comment">// COPYRIGHT Dassault Systemes 2025</span></span><br><span class="line"><span class="comment">//===================================================================</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"><span class="comment">// IdentityCard.h</span></span><br><span class="line"><span class="comment">// Supplies the list of prerequisite components for framework OfflineProgramFrm</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"><span class="comment">//===================================================================</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"><span class="comment">// Usage notes:</span></span><br><span class="line"><span class="comment">//   For every prereq framework FW, use the syntax:</span></span><br><span class="line"><span class="comment">//   AddPrereqComponent (&quot;FW&quot;, Public);</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"><span class="comment">//===================================================================</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"><span class="comment">//  May 2025  Creation: Code generated by the CAA wizard  Admin</span></span><br><span class="line"><span class="comment">//===================================================================</span></span><br><span class="line"><span class="comment">// DO NOT EDIT :: THE CAA2 WIZARDS WILL ADD CODE HERE</span></span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;System&quot;</span>,Protected);</span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;DialogEngine&quot;</span>,Protected);</span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;Mathematics&quot;</span>,Protected);</span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;Dialog&quot;</span>,Protected);</span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;ApplicationFrame&quot;</span>,Public);</span><br><span class="line"><span class="built_in">AddPrereqComponent</span>(<span class="string">&quot;MechanicalModelerUI&quot;</span>,Protected);</span><br><span class="line"><span class="comment">//这里添加新的模块</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// END WIZARD EDITION ZONE</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>在Addin的.cpp文件中添加函数实现</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//Methods implementation</span></span><br><span class="line"><span class="function"><span class="type">void</span> <span class="title">PluginUdfAddin::CreateCommands</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">    <span class="comment">// 创建命令并绑定组件</span></span><br><span class="line">    <span class="comment">// 参数分别为1命令名称，2模块文件名，3命令文件名</span></span><br><span class="line">    <span class="keyword">new</span> <span class="built_in">PluginUdfAddinHeader</span>(<span class="string">&quot;SF_UdfCreate&quot;</span>, <span class="string">&quot;PluginUdfM&quot;</span>, <span class="string">&quot;UdfCreateCmd&quot;</span>, (<span class="type">void</span>*)<span class="literal">NULL</span>, CATFrmAvailable);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="function">CATCmdContainer* <span class="title">PluginUdfAddin::CreateToolbars</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">    <span class="comment">// 创建主菜单</span></span><br><span class="line">    <span class="built_in">NewAccess</span>(CATCmdContainer, pSF_PluginUdfTools, SF_PluginUdfTools);</span><br><span class="line"></span><br><span class="line">    <span class="comment">// 添加SF_UdfCreate命令菜单</span></span><br><span class="line">    <span class="built_in">NewAccess</span>(CATCmdStarter, pSF_UdfCreate, SF_UdfCreate);</span><br><span class="line">    <span class="comment">// 绑定命令到组件（使用CreateCommand中定义的命令名称）</span></span><br><span class="line">    <span class="built_in">SetAccessCommand</span>(pSF_UdfCreate, <span class="string">&quot;SF_UdfCreate&quot;</span>);</span><br><span class="line">    <span class="comment">// 设置菜单父子关系</span></span><br><span class="line">    <span class="built_in">SetAccessChild</span>(pSF_PluginUdfTools, pSF_UdfCreate);</span><br><span class="line">    <span class="comment">// 添加菜单到工具栏右侧第一个</span></span><br><span class="line">    <span class="built_in">AddToolbarView</span>(pSF_PluginUdfTools, <span class="number">1</span>, Left);</span><br><span class="line"></span><br><span class="line">    <span class="keyword">return</span> pSF_PluginUdfTools;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
<h4 id="1-8-添加资源文件"><a href="#1-8-添加资源文件" class="headerlink" title="1.8 添加资源文件"></a>1.8 添加资源文件</h4><h5 id="1-8-1-放置图标"><a href="#1-8-1-放置图标" class="headerlink" title="1.8.1 放置图标"></a>1.8.1 放置图标</h5><ul>
<li><p>打开资源文件路径，一般为xxx\xxxWsp\xxxFrm\CNext\resource</p>
</li>
<li><p>在resources文件夹内新建文件夹，名称为graphic</p>
</li>
<li><p>在graphic文件夹内新建文件夹，名称为icons</p>
</li>
<li><p>在icons文件夹内新建文件夹，名称为normal</p>
</li>
<li><p>在normal文件夹中放置命令图标</p>
<p><img src="/images/2025-05-12-16-18-11-image.png"></p>
</li>
</ul>
<h5 id="1-8-2-放置文字资源"><a href="#1-8-2-放置文字资源" class="headerlink" title="1.8.2 放置文字资源"></a>1.8.2 放置文字资源</h5><ul>
<li><p>打开资源文件路径，一般为一般为xxx\xxxWsp\xxxFrm\CNext\resource\msgcatalog</p>
</li>
<li><p>在该路径下创建三个文件，分别命名为：</p>
<ul>
<li><p>xxxAddin（与Addin类名一致，后缀为CATNls）</p>
</li>
<li><p>xxxAddinHeader（与宏声明的Header名称一致，后缀为CATRsc，内容是图标相关信息）</p>
</li>
<li><p>xxxAddinHeader（与宏声明的Header名称一致，后缀为CATNls，内容是文本显示信息）</p>
</li>
</ul>
</li>
<li><p>在该路径下创建Simplified_Chinese文件夹（中文环境资源文件夹）</p>
<p><img src="/images/2025-05-12-16-26-10-image.png"></p>
</li>
</ul>
<h5 id="1-8-3-更新资源文件"><a href="#1-8-3-更新资源文件" class="headerlink" title="1.8.3 更新资源文件"></a>1.8.3 更新资源文件</h5><p><img src="/images/2025-05-13-09-22-27-image.png"></p>
<h5 id="1-8-4-编译mkmk"><a href="#1-8-4-编译mkmk" class="headerlink" title="1.8.4 编译mkmk"></a>1.8.4 编译mkmk</h5><p><img src="/images/2025-05-13-09-23-03-image.png"></p>
<div STYLE="page-break-after: always;"></div>

<h4 id="1-9-添加环境变量-黑窗口输出"><a href="#1-9-添加环境变量-黑窗口输出" class="headerlink" title="1.9 添加环境变量-黑窗口输出"></a>1.9 添加环境变量-黑窗口输出</h4><ul>
<li><p>点击工具-&gt;Runtime Environment Variables…</p>
</li>
<li><p>环境变量名称：CNEXTOUTPUT</p>
</li>
<li><p>环境变量值：CONSOLE</p>
</li>
<li><p>点击Set</p>
</li>
<li><p>点击OK</p>
<p><img src="/images/2025-05-13-09-26-17-image.png"></p>
</li>
</ul>
<h4 id="1-10-调试程序"><a href="#1-10-调试程序" class="headerlink" title="1.10 调试程序"></a>1.10 调试程序</h4><h5 id="1-10-1-使用Runtime-Window"><a href="#1-10-1-使用Runtime-Window" class="headerlink" title="1.10.1 使用Runtime Window"></a>1.10.1 使用Runtime Window</h5><ul>
<li><p>点击窗口-&gt;Open Runtime Window</p>
</li>
<li><p>输入CNEXT，回车启动</p>
</li>
<li><p>点击工具-&gt;附加到进程</p>
</li>
<li><p>选择CNEXT.exe附加</p>
</li>
</ul>
<h5 id="1-10-2-配置启动项"><a href="#1-10-2-配置启动项" class="headerlink" title="1.10.2 配置启动项"></a>1.10.2 配置启动项</h5><ul>
<li><p>左侧资源管理器选择待调试的模块右键设为启动项</p>
</li>
<li><p>右键启动项目录选择属性-&gt;调试-&gt;命令</p>
</li>
<li><p>选择CATIA路径下的CNEXT命令，路径一般在….&#x2F;B18&#x2F;win_b64&#x2F;code&#x2F;bin目录下</p>
<p><img src="/images/2025-05-13-10-12-36-image.png"></p>
<p><img src="/images/2025-05-13-09-43-46-image.png"></p>
</li>
<li><p>如果以下提示，选择是</p>
<p><img src="/images/2025-05-13-10-10-33-image.png"></p>
</li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://mirror-ghost.netlify.app/">镜中的幽灵</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://mirror-ghost.netlify.app/2025/11/05/CATIA%20CAA%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E6%96%87%E6%A1%A31/">https://mirror-ghost.netlify.app/2025/11/05/CATIA CAA开发教程文档1/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来源 <a href="https://mirror-ghost.netlify.app" target="_blank">镜中的幽灵小站</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/CATIA-CAA/">CATIA CAA</a></div><div class="post-share"><div class="social-share" data-image="/images/header.jpg" data-sites="facebook,x,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1.1.6/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1.1.6/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><a class="pagination-related full-width" href="/2025/11/05/CATIA%20CAA%20%E4%B8%AD%E8%BF%9B%E8%A1%8C%E7%A2%B0%E6%92%9E%E6%A3%80%E6%B5%8B%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E6%B3%95%E6%80%BB%E7%BB%93/" title="CATIA CAA中进行碰撞检测的两种方法总结"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-right"><div class="info-1"><div class="info-item-1">下一篇</div><div class="info-item-2">CATIA CAA中进行碰撞检测的两种方法总结</div></div><div class="info-2"><div class="info-item-1">简介：使用CATIA CAA进行碰撞检测没有官方的文档，相关的接口也无法从DOC文件中找到使用方法，以下是通过尝试和整理总结的在CATIA CAA中进行碰撞检测的方法，包含了需要额外引入的框架和模块。 一、使用 COM（V5Automation）接口进行碰撞检测方法概述通过 COM 接口访问 CATIA 的碰撞检测功能，主要通过获取 CATIAClashes 接口来创建碰撞检测对象，设置检测参数并执行计算。Automation相关的模块一般以CATIA前缀，区分于CAA的CATI前缀。 代码精简示例cpp 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990#include &lt;iostream&gt;#include &lt;CATDocumentServices.h&gt;#includ...</div></div></div></a></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><a class="pagination-related" href="/2025/11/05/AddToolbarView%E6%98%AF%E4%BB%80%E4%B9%88/" title="AddToolbarView是什么"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">AddToolbarView是什么</div></div><div class="info-2"><div class="info-item-1">AddToolbarView是 CATIA 二次开发中的一个函数，它用于将创建的工具条添加到 CATIA 的用户界面中。这个函数允许开发者将自定义的工具条显示在 CATIA 的工作区（workbench）中，使得用户可以直接访问这些工具条。 函数原型AddToolbarView的基本语法如下： 1AddToolbarView(CATCmdContainer* pToolbar, int viewId, int position);   pToolbar：要添加的工具条对象的指针。 viewId：视图的 ID，用于指定在哪个视图中显示工具条。 position：工具条的位置，可以是顶部、底部、左侧或右侧。  参数详解 viewId：这个参数指定了工具条应该显示在哪个视图中。通常，CATIA 中有多个视图，例如主视图、详细信息视图等。视图 ID 是一个整数，用于唯一标识一个视图。 position：这个参数指定了工具条在视图中的位置。可能的值包括： Left：左侧 Right：右侧 Top：顶部 Bottom：底部    示例假设你已经创建了一个工具条pMyToolbar，你想将它添...</div></div></div></a><a class="pagination-related" href="/2025/11/05/CATIGSMFactory/" title="CATIGSMFactory"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">CATIGSMFactory</div></div><div class="info-2"><div class="info-item-1">CATIGSMFactory是CATIA CAA（Component Application Architecture，组件应用架构）中的一个接口，它提供了创建创成式外形设计（Generative Shape Design，简称GSM）车间所有几何元素的功能。 </div></div></div></a><a class="pagination-related" href="/2025/11/05/CATPathElementAgent/" title="CATPathElementAgent"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">CATPathElementAgent</div></div><div class="info-2"><div class="info-item-1">‌CATPathElementAgent‌是一个用于获取元素（如点、线、面等）的代理类，属于CAA（CATIA Application Programming Interface）的一部分。它主要用于在CATIA中进行二次开发时，获取和处理设计模型中的几何元素。 功能和用途CATPathElementAgent的主要功能是获取设计模型中的几何元素，并允许开发者对这些元素进行操作。通过该代理类，可以实现对设计模型中元素的查询、选择、修改等操作。例如，可以通过该代理类获取设计模型中的点、线、面等几何元素，并进行相应的处理和分析‌。 创建和使用方法 ‌创建代理类实例‌：首先需要创建一个CATPathElementAgent的实例。 ‌设置选择元素类型‌：通过调用AddElementType方法，设置需要选择或操作的元素类型，例如点、线、面等。 ‌设置行为‌：可以通过调用SetBehavior方法，设置选择元素的行为，例如高亮显示或保持高亮显示等‌。  状态管理在CAA中，状态管理是一个重要的概念。状态可以理解为一个包含多个代理类的容器，当前状态为操作响应状态。通过状态跳转进行切换，以便...</div></div></div></a><a class="pagination-related" href="/2025/11/05/NewAccess%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%8C%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8/" title="NewAccess是什么，如何使用"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">NewAccess是什么，如何使用</div></div><div class="info-2"><div class="info-item-1">NewAccess是 CATIA 二次开发中用于创建和访问 CATIA 对象的一个宏，它是 CAA（Component Application Architecture）编程环境中的一部分。NewAccess宏用于创建和初始化 CAA 框架中的对象，它通过 CAA 的宏机制简化了对象的创建和访问过程。 使用方法NewAccess的基本语法如下： 1NewAccess(ObjectType, objectName, objectAlias);   ObjectType：要创建的对象类型。 objectName：对象的名称，这个名称在代码中用于访问该对象。 objectAlias：对象的别名，通常用于在 CATIA 的用户界面中显示。  示例假设你想创建一个CATCmdStarter类型的对象，可以这样使用NewAccess： 1NewAccess(CATCmdStarter, pMyCommand, MyCommand);  这里，CATCmdStarter是对象类型，pMyCommand是在代码中用来访问这个对象的名称，MyCommand是这个命令的别名，它可能会在用户界面中显示...</div></div></div></a><a class="pagination-related" href="/2025/11/05/SetAccessChild%E4%B8%8ESetAccessNext%E5%88%86%E5%88%AB%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%8C%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB/" title="SetAccessChild与SetAccessNext分别是什么，有什么区别"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">SetAccessChild与SetAccessNext分别是什么，有什么区别</div></div><div class="info-2"><div class="info-item-1">在 CATIA 二次开发中，SetAccessChild和SetAccessNext是两个用于构建用户界面元素（如工具条和菜单）的宏命令，它们用于添加和组织这些元素中的项目。这两个宏的主要区别在于它们在用户界面元素中的插入方式和位置。 SetAccessChildSetAccessChild宏用于将一个对象（如按钮、菜单项等）添加为另一个对象（如工具条、菜单等）的直接子项。这意味着使用SetAccessChild添加的对象会成为父对象的第一个子项。 语法示例： 1SetAccessChild(parentObjectName, childObjectName);   parentObjectName：父对象的名称。 childObjectName：要添加为子项的对象的名称。  SetAccessNextSetAccessNext宏用于在已存在的项目之后插入一个新项目。它将一个对象添加到另一个对象之后，作为下一个兄弟项。 语法示例： 1SetAccessNext(previousObjectName, nextObjectName);   previousObjectName：已存...</div></div></div></a><a class="pagination-related" href="/2025/11/05/%E5%87%A0%E4%B8%AA%E4%B8%8D%E5%90%8C%E7%9A%84Container/" title="几个不同的Container"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2025-11-05</div><div class="info-item-2">几个不同的Container</div></div><div class="info-2"><div class="info-item-1">Container是包含Catia不同对象的容器，可以通过Document获取，主要分为三类，不同的Container下可以通过不同的Factory创建不同的对象 BRepContainer获取方法： GetBRepContainer() 获取对象： 主要为视窗中可选取的对象  BRepAccess：视窗可选择对象  MechanicalContainer获取方法： GetSpecContainer() 获取对象： 主要是树结构中的对象  MechanicalPart：零件特征  Pad：凸台  GSMTool：几何特征（点线面）  …   CGMContainer获取方法： GetResultContainer() 获取对象： 不可以直接选取的对象  Topological object：拓扑对象  </div></div></div></a></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info text-center"><div class="avatar-img"><img src="/images/header.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info-name">镜中的幽灵</div><div class="author-info-description"></div><div class="site-data"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">1</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/Karze"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">欢迎来到我的小站！</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-%E6%96%B0%E5%BB%BA%E9%A1%B9%E7%9B%AE"><span class="toc-number">1.</span> <span class="toc-text">1. 新建项目</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#1-1-%E5%88%9B%E5%BB%BA%E5%B7%A5%E4%BD%9C%E7%A9%BA%E9%97%B4%EF%BC%88Workspace%EF%BC%89"><span class="toc-number">1.1.</span> <span class="toc-text">1.1 创建工作空间（Workspace）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-2-%E5%88%9B%E5%BB%BA%E6%A1%86%E6%9E%B6%EF%BC%88Framework%EF%BC%89"><span class="toc-number">1.2.</span> <span class="toc-text">1.2 创建框架（Framework）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-3-%E5%8A%A0%E8%BD%BD%E7%BC%96%E8%AF%91%E7%8E%AF%E5%A2%83"><span class="toc-number">1.3.</span> <span class="toc-text">1.3 加载编译环境</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-4-%E6%B7%BB%E5%8A%A0%E6%A8%A1%E5%9D%97%EF%BC%88Module%EF%BC%89"><span class="toc-number">1.4.</span> <span class="toc-text">1.4 添加模块（Module）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-5-%E6%B7%BB%E5%8A%A0%E5%91%BD%E4%BB%A4%EF%BC%88Command%EF%BC%89"><span class="toc-number">1.5.</span> <span class="toc-text">1.5 添加命令（Command）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-6-%E6%B7%BB%E5%8A%A0%E5%AF%B9%E8%AF%9D%E6%A1%86%EF%BC%88Dialog%EF%BC%89"><span class="toc-number">1.6.</span> <span class="toc-text">1.6 添加对话框（Dialog）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-7-%E5%88%9B%E5%BB%BA%E5%A4%96%E6%8E%A5%E7%A8%8B%E5%BA%8F%EF%BC%88Addin%EF%BC%89"><span class="toc-number">1.7.</span> <span class="toc-text">1.7 创建外接程序（Addin）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-8-%E6%B7%BB%E5%8A%A0%E8%B5%84%E6%BA%90%E6%96%87%E4%BB%B6"><span class="toc-number">1.8.</span> <span class="toc-text">1.8 添加资源文件</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#1-8-1-%E6%94%BE%E7%BD%AE%E5%9B%BE%E6%A0%87"><span class="toc-number">1.8.1.</span> <span class="toc-text">1.8.1 放置图标</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-8-2-%E6%94%BE%E7%BD%AE%E6%96%87%E5%AD%97%E8%B5%84%E6%BA%90"><span class="toc-number">1.8.2.</span> <span class="toc-text">1.8.2 放置文字资源</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-8-3-%E6%9B%B4%E6%96%B0%E8%B5%84%E6%BA%90%E6%96%87%E4%BB%B6"><span class="toc-number">1.8.3.</span> <span class="toc-text">1.8.3 更新资源文件</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-8-4-%E7%BC%96%E8%AF%91mkmk"><span class="toc-number">1.8.4.</span> <span class="toc-text">1.8.4 编译mkmk</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-9-%E6%B7%BB%E5%8A%A0%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F-%E9%BB%91%E7%AA%97%E5%8F%A3%E8%BE%93%E5%87%BA"><span class="toc-number">1.9.</span> <span class="toc-text">1.9 添加环境变量-黑窗口输出</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#1-10-%E8%B0%83%E8%AF%95%E7%A8%8B%E5%BA%8F"><span class="toc-number">1.10.</span> <span class="toc-text">1.10 调试程序</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#1-10-1-%E4%BD%BF%E7%94%A8Runtime-Window"><span class="toc-number">1.10.1.</span> <span class="toc-text">1.10.1 使用Runtime Window</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-10-2-%E9%85%8D%E7%BD%AE%E5%90%AF%E5%8A%A8%E9%A1%B9"><span class="toc-number">1.10.2.</span> <span class="toc-text">1.10.2 配置启动项</span></a></li></ol></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2025/11/05/CATIA%20CAA%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E6%96%87%E6%A1%A31/" title="CATIA CAA开发教程文档(1)">CATIA CAA开发教程文档(1)</a><time datetime="2025-11-05T01:26:10.000Z" title="发表于 2025-11-05 09:26:10">2025-11-05</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2025/11/05/CATIA%20CAA%20%E4%B8%AD%E8%BF%9B%E8%A1%8C%E7%A2%B0%E6%92%9E%E6%A3%80%E6%B5%8B%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E6%B3%95%E6%80%BB%E7%BB%93/" title="CATIA CAA中进行碰撞检测的两种方法总结">CATIA CAA中进行碰撞检测的两种方法总结</a><time datetime="2025-11-05T01:17:10.000Z" title="发表于 2025-11-05 09:17:10">2025-11-05</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2025/11/05/%E2%80%8BCATIA%20V5%20CAA%E5%BC%80%E5%8F%91%E4%B8%ADGetPartNumber%E7%A9%BA%E5%80%BC%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93%E2%80%8B%E2%80%8B/" title="​CATIA V5 CAA开发中`GetPartNumber`空值问题总结">​CATIA V5 CAA开发中`GetPartNumber`空值问题总结</a><time datetime="2025-11-05T01:15:10.000Z" title="发表于 2025-11-05 09:15:10">2025-11-05</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2025/11/05/CATPathElementAgent/" title="CATPathElementAgent">CATPathElementAgent</a><time datetime="2025-11-05T01:11:10.000Z" title="发表于 2025-11-05 09:11:10">2025-11-05</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2025/11/05/CATIGSMFactory/" title="CATIGSMFactory">CATIGSMFactory</a><time datetime="2025-11-05T01:10:10.000Z" title="发表于 2025-11-05 09:10:10">2025-11-05</time></div></div></div></div></div></div></main><footer id="footer"><div class="footer-other"><div class="footer-copyright"><span class="copyright">&copy;&nbsp;2025 By 镜中的幽灵</span><span class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo 8.1.0</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly 5.5.1</a></span></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="日间和夜间模式切换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=5.5.1"></script><script src="/js/main.js?v=5.5.1"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>